/*  ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** 
*   Copyright 2014 Jan-Marwin Wollschläger                                   *
*                                                                            *
*   Licensed under the Apache License, Version 2.0 (the "License");          *
*   you may not use this file except in compliance with the License.         *
*   You may obtain a copy of the License at                                  *
*                                                                            *
*       http://www.apache.org/licenses/LICENSE-2.0                           *
*                                                                            *
*   Unless required by applicable law or agreed to in writing, software      *
*   distributed under the License is distributed on an "AS IS" BASIS,        *
*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
*   See the License for the specific language governing permissions and      *
*   limitations under the License.                                           *
** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **   */   

/**
 * TestCase Class that tests the Atom implementation provided by the class Atom.
 * @author Jan-Marwin Wollschläger
 * @version 0.1
 **/
class AtomTestCase implements ITestCase
{
  Unit unit;
  public AtomTestCase()
  {
     unit = new Unit(this); 
  }
  
  public void checkGettersSetters()
  {
    IAtom atm = new Atom();
    atm.setLabel("H");
    atm.setPosition(new Vector2(10.0f, 20.0f));
    
    unit._assertEquals(atm.getLabel(), "H");
    unit._assertEquals(atm.getPosition(), new Vector2(10.0f, 20.0f));
    
    unit._assertTrue(atm.getPosition() != new Vector2(11.0f, 21.0f));
  }
  
  public void runTestCase()
  {
     checkGettersSetters();
  }
  
}
